package com.fen.demo005;

/**
 * @author : lrf
 * @description : Spring5 3.2.2 上下文依赖查找
 * @tip :
 * @date : 2019/3/21
 */
public class ContextualizedDependencyLookup implements ManagedComponent {

    private Dependency dependency;

    @Override
    public void performLookup(Container container) {
        this.dependency = (Dependency) container.getDependency("myDependency");

    }

    @Override
    public String toString() {
        return dependency.toString();
    }
}
